package com.jyh.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/18 9:30
 */
@Component
public class MyQuartz {

    @Scheduled(cron = "0/5 * * * * ? ")
    public void quartz(){
        System.out.println("定时任务");
    }

}
